//获取元素
const business = document.querySelector('.business')
const serve = document.querySelector('.serve')
const a = document.querySelector('.a')
const b = document.querySelector('.b')
//显示函数
let timeid1 = ''
let timeid2 = ''
function showBusiness() {
  clearInterval(timeid1)
  business.style.display = 'block'
  serve.style.display = 'none'

}
function showServe() {
  clearInterval(timeid2)
  serve.style.display = 'block'
  business.style.display = 'none'
}
//隐藏函数
function hiddenBusiness() {
  timeid1 = setTimeout(function () {
    business.style.display = 'none'
  }, 500)
}
function hiddenServe() {
  timeid2 = setTimeout(function () {
    serve.style.display = 'none'
  }, 500)
}

// //鼠标经过事件
// a.addEventListener('mouseenter', showBusiness)
// b.addEventListener('mouseenter', showServe)
// serve.addEventListener('mouseenter', showServe)
// //鼠标离开
// a.addEventListener('mouseleave', hiddenBusiness)
// b.addEventListener('mouseleave', hiddenServe)
// serve.addEventListener('mouseleave', hiddenServe)


//登录
const touxiang = document.querySelector('.dengLu')
const zc = document.querySelector('.zc')
const bbb = document.querySelector('.bbb')
touxiang.addEventListener("click", function () {
  zc.style.opacity = "1"
  zc.style.zIndex='111111111111111'
  console.log(1);
  // zc.style.opacity = 'none'
})


